home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global kingcolor, mycolor, lastclickon, wrongcount, CurrentBug, level1, SubBug, cursorset
- set the visible of sprite 48 to 0
- if cursorset then
- puppetSprite(the clickOn, 1)
- setcolor(the clickOn, kingcolor)
- if not (lastclickon = the clickOn) then
- set lastclickon to the clickOn
- set wrongcount to 0
- end if
- set colortest to checkcolor(the clickOn, kingcolor)
- if colortest = 1 then
- play frame "correctcolor"
- else
- if colortest = 2 then
- if wrongcount < 3 then
- set wrongcount to wrongcount + 1
- end if
- play frame "wrongcolor" & wrongcount
- end if
- end if
- if IsPictFinished() then
- go("GOOD")
- end if
- else
- play frame "no color selected"
- end if
- set the visible of sprite 48 to 1
- end
-